Alternate way to setup a WiFi hotspot 1. install OS, setup basic configurations, update 2. install DHCP CMD: sudo apt-get install hostapd isc-dhcp-server 3. configure DHCP CMD: sudo nano /etc/dhcp/dhcpd.conf *place a # in front of the two option domain-name entries and remove the # in front of authoritive *at the end of the file enter the below subnet 192.168.42.0 netmask 255.255.255.0 { range 192.168.42.10 192.168.42.50; option broadcast-address 192.168.42.255; option routers 192.168.42.1; default-lease-time 600; max-lease-time 7200; option domain-name "local"; option domain-name-servers 8.8.8.8,8.8.4.4; } *save and exit 4. edit server to work with wireless CMD: sudo nano /etc/default/isc-dhcp-server *find INTERFACES and change to: INTERFACES="wlan0" *save and exit 5. setup static ip for wireless CMD: sudo nano /etc/network/interfaces *edit code after allow-hotplug wlan0 iface wlan0 inet static address 192.168.42.1 netmask 255.255.255.0 *put # in front of wpa roam after "iface wlan0 inet manual" **you can also put a # in front of allow-hotplug wlan1 and lines associated to wlan1 *save and exit 6. set IP address for wlan0 CMD: sudo ifconfig wlan0 192.168.42.1 7. create WLAN CMD: sudo nano /etc/hostapd/hostapd.conf *enter code below interface=wlan0 driver=nl80211 ssid="your ssid" hw_mode=g channel=1 macaddr_acl=0 auth_algs=1 ignore_broadcast_ssid=0 wpa=2 wpa_passphrase="your password" wpa_key_mgmt=WPA-PSK wpa_pairwise=TKIP rsn_pairwise=CCMP *save and exit 8. point hostapd to new file CMD: sudo nano /etc/default/hostapd *find line #DAEMON_CONF="" and edit as such and remove the # DAEMON_CONF="/etc/hostapd/hostapd.conf" *save ane exit 9. setup nat for multiple users CMD: sudo nano /etc/sysctl.conf *add to bottom of file net.ipv4.ip_forward=1 *save and exit, then run by entering below CMD: sudo sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward" 10. nat between eth0 and wlan0 CMD: sudo iptables –t nat –A POSTROUTING –o eth0 –j MASQUERADE CMD: sudo iptables –A FORWARD –i eth0 –o wlan0 –m state --state RELATED,ESTABLISHED –j ACCEPT CMD: sudo iptables –A FORWARD -i wlan0 –o eth0 –j ACCEPT *now to have them applied every reboot CMD: sudo sh –c “iptables-save > /etc/iptables.ipv4.nat” 11. now go back to interfaces and add to the end of the file CMD: sudo nano /etc/network/interfaces up iptables-restore < /etc/iptables.ipv4.nat *save and exit 12. setup daemon to run at boot CMD: sudo service hostapd start CMD: sudo service isc-dhcp-server start CMD: sudo update-rc.d hostapd enable CMD: sudo update-rc.d isc-dhcp-server enable 13. reboot and your done